package com.wjjun.test.ui.itemviewmodel

import android.view.View
import androidx.databinding.ObservableField
import com.wjjun.base.ui.viewmodel.BaseItemViewModel
import com.wjjun.app.R
import com.wjjun.data.bean.TestBean1

/**
 *
 * author : wangjunjun
 * date   : 2022/6/29
 * desc   :
 */
class TestDragItemViewModel() : BaseItemViewModel<String>() {


    override fun getItemLayoutId(): Int {
        return R.layout.item_test_drag_item
    }

    constructor(name: String) : this() {
        setData(name)
    }

    override fun getItemSpanSize(maxSpan: Int): Int {
        return 1
    }
}